GtkPopover: Restore tails
authorTimm Bäder <mail@baedert.org>
Tue, 24 Nov 2015 10:37:00 +0000 (11:37 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 24 Nov 2015 10:37:00 +0000 (11:37 +0100)
The call to gtk_style_context_get_border was accidentally removed in
2182fe7d9d6246e7acfe4e9ef0ca26c4a6893be6.

gtk/gtkpopover.c

index 1df1554c23d386f983d00d85a6a4e654b08500fe..0506c5a76f4adf657bb560d1c6a549d2c85fcb35 100644 (file)
@@ -677,6 +677,7 @@ gtk_popover_get_gap_coords (GtkPopover      *popover,
   gint border_radius;
   GtkStyleContext *context;
   GtkBorder margin, border;
+  GtkStateFlags state;
 
   gtk_popover_get_pointing_to (popover, &rect);
   gtk_widget_get_allocation (widget, &allocation);
@@ -708,9 +709,11 @@ gtk_popover_get_gap_coords (GtkPopover      *popover,
   rect.y += gtk_widget_get_margin_top (widget);
 
   context = gtk_widget_get_style_context (widget);
+  state = gtk_style_context_get_state (context);
 
+  gtk_style_context_get_border (context, state, &border);
   gtk_style_context_get (context,
-                         gtk_style_context_get_state (context),
+                         state,
                          GTK_STYLE_PROPERTY_BORDER_RADIUS, &border_radius,
                          NULL);
   pos = get_effective_position (popover, priv->final_position);